$(document).ready(function () {
    var c_height = 115, c_width = 115;
    var data = {
        render: "canvas",
        height: c_height,
        width: c_width,
        correctLevel: 2,
        text: window.location.href,
        typeNumber: -1,      //计算模式
        background: "#ffffff",//背景颜色
        foreground: "#000000" //前景颜色
    };
    $('#qr_container').qrcode(data);
    // $("canvas").css("margin-top", "8px");
    console.log($("#qr_container").height() , $("#codeico").height());
    $("#codeico").css("margin-left", ($("#qr_container").height() - $("#codeico").height()) / 2);
    $("#codeico").css("margin-top", ($("#qr_container").height() - $("#codeico").height()) / 2-6);
});